import http from "@/api/axios";
import { BusinessType } from "@/api/moduleConfig";
export const getListApi = (data: SingleOrderApproval.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/queryPage`,
    data
  });
};
export const getPageStaticApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/pageCount`,
    data
  });
};
export const getDetailsApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/queryById`,
    data
  });
};
// 审批报价
export const finApprovalApi = (data: SingleOrderApproval.ApprovalForm) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/finApproval`,
    data
  });
};
// 统计
export const statisticsDataApi = (data: SingleOrderApproval.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/orderShipmentQuotation/quotationStatistics`,
    data
  });
};

// 导出总价审批excel
export const sumPriceApprovalExcelApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `export/biz/exportExcel/sumPriceApprovalExcel`,
    data
  });
};

// 导出总价审批-费用excel
export const simplePriceApprovalExcelListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `export/biz/exportExcel/simplePriceApprovalExcelList`,
    data
  });
};
